#!/usr/bin/env python

import os, sys
from setuptools import setup, find_packages

# Utility function to read the README file.
# Used for the long_description.  It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


setup(
    name = "payment-tracking-complex-cli",
    keywords = "payment tracking client command-line",

    # M.FFF{.dev-rR} / M.FFF-rcP / M.FFF[-B]
    # where as:
    #   M - Major Version Number (int)
    #   F - Functional Update Number (int[3])
    #   R - SVN Revision Number (int) [ developing version ]
    #   P - Pre-Release Number (int)  [ release candidate  ]
    #   B - Bug-Fix Number (int)      [ normal release     ]
    version = "0.001",
    # note:
    #   {.dev-rR} is appended by ./setup.cfg; remove it before packaging
    #   [-B] is optional; add it only for bug-fixes

    author = "Tony C. Zhang",   # package author
    author_email = "niu.tony.c.zhang@gmail.com",
    url = "http://code.google.com/p/payment-tracking-complex-cli/",

    description = ("This software is used to simplify tracking payments when one person covers one or more bills for a group of people. Each payment is split evenly amongst the people entered into the system. The total payments are aggregated then split by how much each person owes every other person."),
    long_description=read('README'),
    license = "BSD 3-Clause",

    packages = find_packages(),
    include_package_data = True, # include every data file under SVN control
    zip_safe = False,            # do NOT install as a zip file; install as dir

    entry_points = {
        'console_scripts': [
            'ptc  = ptcCLI.scripts.ptc:main',
            ],
        },
    )
